FROM frolvlad/alpine-oraclejdk8

MAINTAINER wayne(joneswayne@163.com)

VOLUME /tmp

ENV PROJECT_HOME /home/project
ENV OUTPUT_HOME /output

RUN mkdir -p "$PROJECT_HOME" && mkdir -p "$OUTPUT_HOME"

ADD target/service-web-1.0.0.jar /home/project/service-web-1.0.0.jar

WORKDIR /home/project

RUN echo "Asia/Shanghai" > /etc/timezone

ENV JAVA_OPTS=""

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /home/project/service-web-1.0.0.jar" ]

EXPOSE 8000

# docker build --no-cache  -t zce-service-user:v1 .
# docker run -it -d --name zce-service-web -p8000:8000  zce-service-web:v1

